package org.example.book.conception;

import lombok.Data;

/**
 * 猪头
 */

@Data
public class BizException extends RuntimeException{

    private Integer code;
    private String message;


    public BizException(BizExceptionEnum bizExceptionEnum) {
        super(bizExceptionEnum.getMsg());
        this.code = bizExceptionEnum.getCode();
        this.message = bizExceptionEnum.getMsg();
    }
}

